import 'package:flutter_test/flutter_test.dart';
import 'package:util/standard/all_types_extension.dart';

void main() {
  group('test extensions', () {
    test('test let', () {
      final str1 = "";
      final result = str1.let((it) => 1);
      expect(result, 1);

      String? str2 = "";
      String? str3 = null;

      expect(str2.let((it) => 1), 1);
      expect(str3.let((it) => 1), isNull);
    });
  });
}
